<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class OfferManagement extends MY_Controller {

	function __construct() {
		parent::__construct();
	}
	
	public function index()
	{
		if($this->LoggedIn()){
		
			$this->load->model('offer_model');
			$this->load->model('request_model');
			$data['offers'] = $this->offer_model->get_offers_by_fb_id($this->fb_id);
			$data['requests'] = $this->request_model->get_requests_by_fb_id($this->fb_id);
			
			
			$data['title'] = 'Offer Management';
			$data['content_view'] = 'offermanagement_view';
			$data['stylesheets'] = array();
			$data['javascripts'] = array();
			$this->load_view($data, TRUE);
		}
	}
}
